#2 ✓hold
mrflip

“not a valid constant name” errors

Reported by mrflip | August 8th, 2008 @ 03:38 PM

(cut from the wiki on github):

If you get this error:

NameError ("Plugins::Restful-authentication::Lib" is not a valid constant name!)

...rename vendor/plugins/authentication-plugin to something without a hyphen character (like ‘authentication’ or ‘restful_authentication’).

Hopefully the maintainers will consider renaming this plugin.

Comments and changes to this ticket

  • mrflip

    mrflip August 17th, 2008 @ 12:47 PM

    The problem with renaming the github repository is that every watching user on github would have to un- and then re-subscribe to it -- and it is the second-most watched plugin.

    So, unless this can be fixed on the rails end I'm afraid everyone will have to just rename the restful-authentication folder to "restful_authentication" from now on.

  • mrflip

    mrflip August 14th, 2008 @ 12:26 PM

    • State changed from “new” to “hold”
  • cbs

    cbs August 17th, 2008 @ 12:32 PM

    ok, so what's are we supposed to do to make this work, please? I have just done a first-time install of the github into a virgin project to try this out and get the above whenever either raking or generating so if (1) renaming is necessary but (2) renaming is to be avoided, yet (3) the issue is on "hold", can someone enlighten me, please?

    Many Thanks, -cbs

    (ruby 1.8.6 p111, rails 2.1.0)

  • mrflip

    mrflip August 17th, 2008 @ 01:04 PM

    Just rename the folder

    • vendor/plugins/authentication-plugin

    to have underscore (not dash):

    • vendor/plugins/authentication_plugin

    The bug is on 'hold' because we'd need to somehow get the several-hundred watchers, and who knows how many who have git remotes tied to this, to move to the new URL.

    (Oh, I just realized your confusion. The repository can't be renamed because of its many watchers. The folder on your machine you can do anything you like to. I've edited my comment above. So, to the Jetpack-Wearing People of the Future: cbs had every right to be confused by comment#2 as it originally stood.)

  • cbs

    cbs August 17th, 2008 @ 01:43 PM

    thanks, mrflip, i'm getting much better now...

  • Matt Jones

    Matt Jones November 18th, 2008 @ 09:34 AM

    This will finally be fixed in 2.2 final - commit http://github.com/rails/rails/co... fixes this problem (I tested it..)

  • Andriy Tyurnikov

    Andriy Tyurnikov January 20th, 2009 @ 08:45 PM

    Having both repo names is an overkill? =)

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Restful Authentication Generator

This widely-used plugin provides a foundation for securely managing user
authentication:
* Login / logout
* Secure password handling
* Account activation by validating email
* Account approval / disabling by admin
* Rudimentary hooks for authorization and access control.

http://github.com/technoweenie/restful-authentication/tree

Pages